Light switch and temperature sensor