Removed sensorPin argument