Amindzo, add the code necessary and it should work.
Code:
Rdegree var byte ' sensor reading variable
Sdegree var Byte ' Temperature setpoint variable
RHumidity var byte ' Sensor Humidity variable
SHumidity var byte ' Humidity setpoint variable
TempDev var Portx.x ' Pin to control the heating system
HumDev var Portx.y ' pin to control water spry motor
Main:
'make a loop delay for the time required at the end call CheckAmbient
'Here you need also the routine for setting your setpoints
goto main
CheckAmbient:
if Rdegree > Sdegree then
TempDev=Low
else
TempDev=high
Endif
if RHumidity > SHumidity then
HumDev=Low
else
HumDev=high
Endif
return
end
Al.
Last edited by aratti; - 7th November 2008 at 17:26.
All progress began with an idea
Bookmarks