In this project, we have connected LDR(Light-dependent resistor) coupled with a resistor of 10k ohm. One pin of the LDR is inserted in the 3v3 pin of the module and the other leg is inserted in the A0 pin. The resistor's one leg is inserted in the GND pin and the other leg again is inserted into A0 pin.
Now connect the module to the supply and open the bolt cloud. Create a new product on the bolt cloud with the following enteries.
You can change the name as per your choice.
Now, go to configure this product option. Now select the analog A0 pin on the given schematic structure of the wifi module. Give the variable name on the pin as light. You can give any name of your choice. Now go to the code section and write the following code after giving a suitable file name to the code file with the extension.js as the code is written in the javascript language.
Now save the product and close the configure window. Now select the link device to the product button and link your bolt device to your product.
After linking the device, click the deploy configuration button and then click the view this device button which will redirect you to the page which will show your prediction graph. Selecting the predict button will start predicting the next value.
Comments