working version of new class system for sensor