Code for openenergymonitor & moteino