Arduino circuit for recording sleep position