Everything I've read said my code should be fine, can anyone help me with this?
Copy of code:
#include <SoftwareSerial.h>
#include <cactus_io_AM2302.h>
#define AM2302_PIN 7
const int pinPhoto = A0;
int raw = 0;
const int inputPin = 6;
AM2302 dht(AM2302_PIN);
const int ledPin = 13;
void setup() {
// put your setup code here, to run once:
dht.begin();
pinMode( pinPhoto, INPUT );
pinMode(inputPin, INPUT);
pinMode(ledPin, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
int value = digitalRead(inputPin);
dht.readHumidity();
dht.readTemperature();
raw = analogRead(pinPhoto);
if (isnan(dht.humidity) || isnan(dht.temperature_C)) {
return;
}
if (value == HIGH)
{
digitalWrite(ledPin, HIGH);
Serial.print("wake");Serial.print(" ");Serial.print(raw); Serial.print(" "); Serial.print(dht.temperature_C); Serial.print(" "); Serial.println(dht.humidity);
}
else
{
Serial.print("sleep");Serial.print(" ");Serial.print(raw); Serial.print(" "); Serial.print(dht.temperature_C); Serial.print(" "); Serial.println(dht.humidity);
digitalWrite(ledPin, LOW);
}
delay(1500);
}
Copy of error message:
Arduino: 1.6.9 (Windows 10), Board: "Arduino/Genuino Uno"
C:\Users\590136\AppData\Local\Temp\arduino_modified_sketch_733324\sketch_jun04b.ino:3:30: fatal error: cactus_io_AM2302.h: No such file or directory
#include <cactus_io_AM2302.h>
^
compilation terminated.
exit status 1
Error compiling for board Arduino/Genuino Uno.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.