Arduino MKR1000 & DFRobot Liquid Level Sensor Compatibility
I have purchased the Arduino MKR1000 & DFRobot Liquid Level Sensor IR02 for a work project and was wondering whether the 2 are compatible without further components.
To advise, I have downloaded the software for the Arduino MKR1000 and run a few of the example programs like Blink successfully.
The DFRobot Liquid Level Sensor IR02 comes with a 3pin adaptor that I have tried on the Arduino MKR1000 without success, I was curious as to whether any other components are required to get these to work together or whether I'm doing something wrong.
Code being used:
int Liquid_level=0;
void setup() {
Serial.begin(9600);
pinMode(5,INPUT);
}
void loop() {
Liquid_level=digitalRead(5);
Serial.print("Liquid_level= ");Serial.println(Liquid_level,DEC);
delay(500);
}
Thanks in advance for any replies.
To advise, I have downloaded the software for the Arduino MKR1000 and run a few of the example programs like Blink successfully.
The DFRobot Liquid Level Sensor IR02 comes with a 3pin adaptor that I have tried on the Arduino MKR1000 without success, I was curious as to whether any other components are required to get these to work together or whether I'm doing something wrong.
Code being used:
int Liquid_level=0;
void setup() {
Serial.begin(9600);
pinMode(5,INPUT);
}
void loop() {
Liquid_level=digitalRead(5);
Serial.print("Liquid_level= ");Serial.println(Liquid_level,DEC);
delay(500);
}
Thanks in advance for any replies.