User specification using Serial Monitor

Hi, I am using an Arduino to complete a light intensity control project. The user sets a threshold that they would like the lux to remain at when the sensor moves around the light. I have everything working I just don't know how to I would enable the user to specify the desired lux using the serial monitor.
Any help appreciated, thank you.

I would suggest to study Serial Input Basics to handle this

Hello
take a look here.

Serial.parseInt(); or Serial.parseFloat();?
https://www.arduino.cc/reference/en/language/functions/communication/serial/

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.