Switched to on-off buttons. That's it
Alert,Get Sensor, Get image changed to ON-OFF switches and they are fully functional. In some way. HTML is still a bit messy.
Merge fixed.