Copy
if
(sensorValue
>
500
) {
digitalWrite
(
LED_BUILTIN
,
HIGH
);
}
else
{
digitalWrite
(
LED_BUILTIN
,
LOW
);
}