Update Code.gs

[*] Correct wrong parameters checking for sensors and lights