Integrated sensor with arduino sketch