Using shared pointer for sensors, first iteration