User manual
The setup of this experiment is made up of a sensor at the analogue input A6. A
voltage divider with 10-kΩ-resistor and photo transistor permits measuring the
current brightness. You can also use the temperature sensor, however. The circuit
remains nearly the same, but the light transistor is
replaced by the black NTC. The polarity in the
NTC does not matter.
The setup with photo transistor at A6
The program
The program now measures brightness. In contrast to the past experiment, how-
ever, the data will not be output on a website, but sent directly to the ThingSpeak
page. This page does not save the data, but displays them well-structured in a
chart – a very practical function for a measuring station with long-term monitoring.
For the program to be able to send to the website, you need to enter the above
API key in the program first under the item ThingSpeakKEY in addition to your
WLAN data. After the upload, you will see the current measured values in the
serial monitor. Data will be collected for 15 seconds and then averaged. This value
will be transmitted to the ThingSpeak-page. The 15 seconds are important. You
cannot send new values to the ThingSpeak-page every second. The result of the
measurement is now displayed on your channel page in the following chart.
Required parts
1 x pinboard, 1 x NanoESP, 1 x photo transistor, 1 x re-
sistor 10 kOhm (brown-black-orange), circuit wire