try to use new sensor functionality out of main. Is not working atm