NEW part of  code to measure energy consumption

Aded code that simulates energy counsumption counter. This is counterd
by arduino and pushed into data base