Implementing test suite (untested)
- adding update function of sensor to mainloop