Not able to get data from Arduino uno

Im new to Bolt iot board, Iam trying hard to make connection with arduino.
I want my LDR connected anolog reading to transfer to cloud.

bolt js

im using ardunio to add more sensors to it…

**<code on Arduino>**
 void setup() {
    Serial.begin(9600);
    boltiot.Begin(Serial); //Initialize the Bolt interface over serial uart. Serial could be replaced with Serial0 or Serial1 on Arduino mega boards.
         //In this example Tx pin of Bolt is connected to Rx pin of Arduino Serial Port
         //and Rx pin of Bolt is connected to tx pin of arduino Serial Port
    //pinMode(2,INPUT); //Set pin 2 as input. We will send this pin's state as the data to the Bolt Cloud
    
  }
  void loop() {
    boltiot.CheckPoll(analogRead(A1)); //Send data to the Bolt Cloud, when the Bolt polls the Arduino for data.
      int sensorValue = analogRead(A1);
      Serial.println(sensorValue);
      delay(10);
  //This function needs to be called regularly. Calling the CheckPoll function once every seconds is required
  }

Hello Edwin.Jose,
Only the Bolt IoT device can be connected to the bolt cloud and you cannot connect Arduino to the bolt cloud. You can connect your LDR sensor to the bolt IoT device.

Hi @edwin.jose,

I am inviting @vinayak.joshi to help you out with this query. He will be replying to you by tomorrow’s EOD.

now im getting reading…
things i have done are

.i terminated serial.println

:heart_eyes: :heart_eyes: :heart_eyes: :heart_eyes:

1 Like

Awesome,

Do let me know in case you need further assistance.