Working with environment sensors