ewandingwall
New Member
main:
readtemp C.2,b1 ; read value into b1
if b1 > 50 then ; Temperature rises 50 degrees celsius
high B.1 ; Turn on blue LED
endif
if b1 > 70 then ; Temperature rises above 70 degrees celsius
high B.2 ; Turn on red LED
endif
goto main
im using a hair drier to simulate the temperatures. im getting the blue led constantly turned on but the red doesnt turn on even when i put the hair drier really close next to the temperature sensor.
any ideas as to where im going wrong? many thanks
readtemp C.2,b1 ; read value into b1
if b1 > 50 then ; Temperature rises 50 degrees celsius
high B.1 ; Turn on blue LED
endif
if b1 > 70 then ; Temperature rises above 70 degrees celsius
high B.2 ; Turn on red LED
endif
goto main
im using a hair drier to simulate the temperatures. im getting the blue led constantly turned on but the red doesnt turn on even when i put the hair drier really close next to the temperature sensor.
any ideas as to where im going wrong? many thanks