Embedded Computing System project - Sleep detecting and, when state identified, automatic switching off light.