Project 1: Building Your First IoT Sensor Project : Uncaught reference erroe

I have followed all steps carefully but while opening of the website get this error. I am getting the data every 5 min in boltIot cloud but not showing working status of LDR that is 1 is not showing in light column.
I have waited and tested in light off and on status.

Hi @hardik.temptest,

Can you please provide the code that you have written so that we can check and help you out with this?

Also check if this may help you out?

If you have done the experiment correctly but the data does not update on the Cloud

  • Check your hardware configurations.
  • Check your cloud product code.
  • Check if Both the Green Led and Blue Led of the Hardware are on and stable.
  • Update the BoltEsp firmware, by following the documentation here.
  • Restart the Bolt WiFi module.
  • Now go to the device view and check the updated values from the device.

If the data always shows 1thousand

  • Look at the time of update. It may be that you are looking at old value, and not the new once.
  • Check the connections of the resistor to a0 pin and GND.
  • Try covering the LDR with your finger, and clicking on push data while your finger is on the LDR.
  • Some students have received an LDR with internal resistance which is different from the standard. Try using the following combinations in the given sequence
  • 3.3v - LDR - a0 Pin - 10k - gnd
  • 3.3v - LDR - a0 Pin - 330 - gnd.

If the data always shows 0

  • Look at the time of update. It may be that you are looking at old value, and not the new ones.
  • Check the connections of the LDR to a0 pin and 3.3v pin.
  • Try focusing the torch from your phone onto the LDR
  • Some students have received an LDR with internal resistance which is different from the standard. Try using the following combinations in the given sequence
  • 3.3v - LDR - a0 Pin - 10k - gnd
  • 3.3v - LDR - a0 Pin - 330 - gnd.

If you have made the circuit connections correctly but data is not getting plotted/ NaN is shown.

  • This means that there is an error in the code that you have written.
  • Make sure that the variable name that you have used in the code matches exactly to the variable name provided while creating hardware configuration.
  • If that’s the case, copy the variable name from the hardware config page and paste it in the code.
  • Save the code and click on deploy configuration.

@hardik.temptest Is your issue resolved? Please share the code and photo of the circuit connections.

Also request you to share the screenshot of the error so that we can help you.