fixed problem with sensor timeout calculation