Hello Angelo,
From time to time my AM2302 sensor seem to be wanish from the system. When I reboot the system the sensor come back. With this sensor I control two relays, for the ventilation of the greenhouse. One for the temperature and one for the humidity. Now how can I be alerted by the system is a sensor is missing ? Is it possible ?
Oh by the way I tried to replace the sensor with a new one but the problem come back with the new sensor.
Pierre
Hello,
yes, you can connect the other sensor to one of the GPIO pin, for example you can use the GPIO18 on the board.
For the configuration, you need to go to the Hardwaresetting page.
Normally the GPIO18 is assigned to the relay2 in the default configuration, so first you have to remove the row which uses the PIN 18. Click the "edit table" button and see the "PIN" column, the row that have the PIN value set to 18 should be removed, click the "del" button of the row, and then click "Confirm and Save" at the bottom of the page.
Wait some seconds, now you can click again the "edit" button, The first row has the "add" button, in this row you have to set all the field as already done in the "temperature_serre" row, except for the "name" which should be different and the PIN field which should be set to "18" (instead of 24).
Then click "add" and click the "Confirm and Save" at the bottom of the page.
Now if you go to setting page, you can see there is another sensor and you can test the reading.
Let me know.
Angelo
Hello Pierre,
It should be possible to send an alert when the sensor reading is outside a certain range, but in your case, there is no sensor reading so for this case it is not implemented in the SW (I'll think about this point anyway, maybe in future releases).
But I'd like to address the problem with the AM2303 sensors, as this reading interruption should not normally happen.
As understood you have two sensors, can you connect also the second sensor to another GPIO of the raspberry, with a short cable? in such case we can make a comparison of the two running at the same time. You need to select a gpio pin which is not already in use in the hardwaresetting table. Let me know if you require further instructions fot the setting.
Which is the GPIO pin that you are using right now?
There is also the possibility to take logs of the day, so if possible, the day that the problem happen, can you go to hardwaresetting and click on "current log file", a link to a file will appear where you can download the file. If you can send it, I can try to see if there is some clue of what is happening.
Angelo