added generic sensor module and created ec sensor
lights now log exceptions