- Download a release
- Unzip the contents in a folder called Sensor/
- Copy the folder into /libraries/.
#inlcude <Sensor.h>
Sensor MSensor1 = Sensor(SENSOR_PIN);
void setup() {
Serial.begin(9600);
}
void loop() {
int sensorReading = MSensor1.averageRead();
Serial.println(sensorReading);
delay(10);
}