Little changes in work with sensor