Basic rule not working

My basic rule not working

rule "high_temp"
 when
  Item Arduino_Temp01 received update
 then
  if((Arduino_Temp01.state) > 32) {
    sendCommand(led_light, ON)
  }  else {
	sendCommand(led_light, OFF)
}        
end

You don’t say what isn’t working, but from memory this line should be

if((Arduino_Temp01.state as DecimalType) > 32) {
1 Like