Seeeduino with Grove

I’m looking for a simple example of using the onboard grove connectors, or even the grove shield if necessary. The lorawan part works great, but I can’t get any readings from external sensors. Looking for a simple soil moisture sensor example.



thanks.

Hi,



here is the code for reading the Soil Moisture.

[code]int sensorPin = A0;
int sensorValue = 0;

void setup() {
Serial.begin(9600);
}
void loop() {
// read the value from the sensor:
sensorValue = analogRead(sensorPin);
Serial.print("Moisture = " );
Serial.println(sensorValue);
delay(1000);
}[/code]

Here we are connected Soil Moisture sensor on the A0 Pin, and you can change that if you want. more resource: http://wiki.seeedstudio.com/Grove-Moisture_Sensor/

OK. Thank you. I thought it was a problem with the board, but it was just my mistake on the output. I had serial.print rather then serialUSB.print and it was stopping at that line.



thanks.

It is a common and valuble mistake. Thanks for pointing it out!