Add energy sensor as 4th input.