Hi,
I received my package today and was testing Sense Hat. I wrote a small script to log the values to screen.
# Test for environmental sensors from sense_hat import SenseHat from time import sleep sh = SenseHat() try: while True: t = sh.get_temperature() p = sh.get_pressure() h = sh.get_humidity() t = round( t, 1 ) p = round( p, 1 ) h = round( h, 1 ) print( "Temp = %s Prsr = %s Hmdt = %s" %(t,p,h) ) sleep( 1 ) except KeyboardInterrupt: print( "Exiting..." );
But I am getting negative values for temperature and humidity.
Temp = -422.2 Prsr = 1008.2 Hmdt = -39.8 Temp = -422.6 Prsr = 1008.2 Hmdt = -39.8 Temp = -421.5 Prsr = 1008.2 Hmdt = -39.7 Temp = -422.0 Prsr = 1008.2 Hmdt = -39.8 Temp = -422.1 Prsr = 1008.2 Hmdt = -39.8 Temp = -422.0 Prsr = 1008.2 Hmdt = -39.8 Temp = -422.0 Prsr = 1008.2 Hmdt = -39.8 Temp = -422.1 Prsr = 1008.2 Hmdt = -39.8 Temp = -422.1 Prsr = 1008.2 Hmdt = -39.8 Temp = -422.1 Prsr = 1008.2 Hmdt = -39.8 Temp = -422.1 Prsr = 1008.2 Hmdt = -39.8
Can anyone tell me what is it I'm doing wrong?
Thanks,
vish