added sensor to arduino sketch