Using Ambient Light Sensors - Arduino Made Easy(er) Lesson 05

3,751 views · Published 5 May 2018 · 29:10 · Indexed 20 October 2026

Channel: Toms Trains and Things · 2018 · Howto & Style

Watch on YouTube

In This Lesson Of Arduino Made Easy, we show you how to determine the best settings to use to trigger your components. Using the Serial Monitor, we will find the best settings and change criteria as we change the ambient lighting in the room.

We use an else if statement in this lesson in the same manner as an if statement.  We could have used another if statement to achieve the same results.

The continuation of this lesson will be on May 5, 2018 when we take this sketch a little further by adding LED's to simulate the grade crossing lights.

Please visit my website for more information on Arduino:
https://tomstrainofthought.com/

SHOP FOR ITEMS SEEN IN THESE VIDEOS:
https://www.amazon.com/shop/tomstrainsandthings

⚙
If you would like to help with translating this or any other video of mine, click this link:  http://www.youtube.com/timedtext_cs_panel?c=UCE1TsLOIG2wxBZ7fe8512qw&tab=2
⚙

Subscribe To This Channel  https://goo.gl/Af3bK0
Watch This Video Most Popular  https://goo.gl/tFshUw

BECOME A PATRON
https://www.patreon.com/TomKvichak

CONTACT INFORMATION:
[email protected]
https://www.instagram.com/tomkvichak/
https://www.facebook.com/froginflorida

S U P P O R T  THIS  C H A N N E L
Patreon:  https://www.patreon.com/TomKvichak
PayPal : https://paypal.me/tomstrainsandthings

PLAYLISTS OF INTEREST:
What You Should Know Before Starting Your Model Railroad
https://www.youtube.com/playlist?list=PLjjhnrIKSTSi3vSZbz0gPxhZAPWvw9eyK

Useful Tools For The Model Railroader
https://www.youtube.com/playlist?list=PLjjhnrIKSTSgADOj1VFiGe9chmGdrNBCs

Model Railroading For Beginers
https://www.youtube.com/playlist?list=PLjjhnrIKSTShrzvkLrtppcNJ0zObTcDyv

Electrical Projects Videos
https://www.youtube.com/playlist?list=PLjjhnrIKSTSg3vBnObEMQzzProQXMBnge

Wiring On Your Model Railroad
https://www.youtube.com/playlist?list=PLjjhnrIKSTShW9IeN-sVYz8fgRDqq_4Fo

Disclaimers: all opinions are my own, sponsors are acknowledge. Affiliates are: Amazon, TubeBuddy, 1&1, & Magix GmbH

More from this channel