Added basic sensor-getting functionality