Tweak sensors

Add (object) to class definition
Simplify sample main's