Code to control a Smart Cap to be used in Haloween, with an Android Aplication