Working basic sensor functionality