The code above is what programs the sensor to check the light intensity, while showing the reading in the cloud console.
To test it out, I set up the sensor with regular light. When I looked for the light intensity in the cloud console, I would get readings in the 1700-1800 range (this scale is specified in the code). See Video 1 in the video demonstration link below.
For the second test, I turned off some lights off so that the room would be dimmer. I checked the cloud console to see what the light intensity was and as expected, the readings decreased to the 1000-1100s range. This showcases that the sensors work and the code is doing what I wanted it to do. See Video 2 in the video demonstration link below.