Hi, I made a quick circuit to test the functionality of my code.
Here's the schematic:
Here's the code:
The seven segment display indicates that the temperature sensor is returning 0. Have I connected it all correctly, or is this a faulty sensor?
Thanks!
Here's the schematic:
Here's the code:
Code:
symbol temp = b1
symbol mintemp = 0
symbol maxtemp = 60
main:
readtemp 0,temp
if temp = 0 then
high 5
elseif temp > 0 then
if temp < 60 then
high 6
else
high 7
endif
endif
pause 1000
goto main
Thanks!