Bugfix, forgot to store reference to sensor