A system for improving the safety of a room occupied by a patient includes a sensor for monitoring when the patient is out of bed. The sensor sends a signal that gives an alert to a care giver that the patient is out of bed. Lights in the room are slowly illuminated to provide light for the patient. A second sensor may sense when the patient has returned to bed and correspondingly dim the lights. The history of the patient being in and out of bed, and of the care giver responding to alerts may be recorded in a log. A programmable micro controller is used to control the system.