This model illustrates a simple automatic light switch with an LDR.
When the light is on, the LED will be off. When it’s off, the LED will turn on.
Remember to tune the LDR value in Stateflow model depending on the light intensity of your environment.
Techsource Technical Team (2020). Automatic Night Light (https://www.mathworks.com/matlabcentral/fileexchange/51950-automatic-night-light), MATLAB Central File Exchange. Retrieved .
Update title and Summary