work with sensor