removed prints and bugs and added code for second sensor