does anybody of you experience the same problem?
When I query the pressure and the temperature from the pressure sensor of the Sense Hat, the first reading is always 0 for both values. The code is very simple and directly from the API site:
Code: Select all
from sense_hat import SenseHat
sense = SenseHat()
tempFromPressure = sense.get_temperature_from_pressure()
print("Temperature from pressure: %s C" % tempFromPressure)
pressure = sense.get_pressure()
print("Pressure: %s Millibars" % pressure)
Temperature from pressure: 0 C
Pressure: 0 Millibars
All subsequent readings work well - I get useful values. When I reboot the Pi wihout removing power, the first reading after the reboot is also fine. If I power down the Pi, remove power and start it up again, it has troubles with the first reading again: it reads Zero.
This happens only with the pressure sensor. When I query temperature and air humidity from the humidity sensor, I get useful values already from the first reading.
Does anyone have any idea what could be the cause? I assume this behaviour is not intendet. Does the pressure/temperature sensor need a wake up signal for the first measurement?