http://www.mysensors.org/build/humidity and http://www.mysensors.org/build/pressure
In addition to that the current weather situation is transmitted.
Right now the temperature values of both sensors are transmitted to the gateway. This is a bit redundant, but maybe useful when
mounting one the sensor (e.g. BMP) inside the building and the other one (DHT) outside of the building.
- reduced footprint by storing only the last few samples instead of all 180
- fixed wrong calculation: 65/1023 factor replaced with a conversion factor hPa to kPa
- fixed error when 180 minutes were reached: sketch started at 5 min instead of 6 triggering a wrong average calculation
Cleaned up code
- removed unused variable
- fixed unit Pa to hPa in serial print
- introduced constants and enum for better readability
Signed-off-by: windkh <karl-heinz.wind@web.de>
I agree to the CLA!