hello everyone, How can I use this sensor WCMCU-101 OPT101 Analog Light Sensor with arduino mega?

Welcome to the forum
As your topic does not relate directly to the installation or operation of the IDE it has been moved to the Project Guidance category of the forum
Ok, Thanks
Some google results: WCMCU-101 OPT101 Analog Light Sensor - Google Search
On the google there is only description of the sensor and its price are there. But I can't find the wiring and any sample code for this sensor. If you have any suggestion I am glad to hear.
How well did you look ?
See https://srituhobby.com/cjmcu-101-opt101-analog-light-sensor-with-arduino/
I have seen it before, but the sensor I have in my hand is WCMCU-101 not CJMCU 101. I think they have some difference, if I mistaken please correct me. Thank you
They certainly look similar. Why not give it a try ?
Ok I will. Thanks
Start by posting the code in code tags to make it easier to read and copy
Please follow the advice given in the link below when posting code, in particular the section entitled 'Posting code and common code problems'
Use code tags (the < CODE/ > icon above the compose window) to make it easier to read and copy for examination
https://forum.arduino.cc/t/how-to-get-the-best-out-of-this-forum
Then post the full error message copied from the IDE using the button provided for the purpose, again using code tags
Ok, Thank you so much. I will.
