Code for the electric imp device