complete SensorSimulator codes