Reading analog values with Seeed Bluetooth Shield

Hello there !

I’m actually trying to read analog values from analog pin A0 on my Arduino Uno, but I can’t figure out how to read values from the serial monitor with the BT shield.

Here’s what I’ve got in my loop section:

void loop()
{
int sensorValue = analogRead(A0);
int serialValue = sensorValue/4;
Serial.write(serialValue);

if(Serial.available()){
  buffer = Serial.read();
  Bt.write(buffer);
}

}

Am I doing something wrong ? I’ve set the Bluetooth baud rate to 9600 but nothing really changed.

Thanks in advance for your suggestions !

Hey , maybe you can refer to the FAQ of Bluetooth shield, it sounds you have not configured the baud rate right.

seeedstudio.com/wiki/Bluetooth_Shield