A voxel room-control study: a light sensor measures the environment, a threshold comparator makes the decision, and an NPN transistor drives the lamp.