simplified arduino sketch