Energy Management Control with Sensor