Close
0%
0%

Portable UV Sensor

A cheap portable UV sensor to know when to apply sunscreen!

Public Chat
Similar projects worth following
108 views
My wife was always telling me to put sunscreen on the kids even if the sky was dark and cloudy. I was skeptical that it was needed in those situations. Therefore I decided to actually see if there is indeed a lot of UV light in different scenarios by building a portable UV sensor with screen.

As I had a mountain of M5StickC Plus' laying around from another project, I ordered the only cheap multi-spectral UVA/B/C sensor I could find, the Sparkfun AS7331. I connected the two together and 3D printed a case and this is what I got!

I am happy to get input on the coding to make the readings more accurate to the UV Index measurements used in the US.

I just completed it, so I have yet to field it and see how different environments have different readings.

To do:
1. Convert to UV Index rating instead of direct measurements
2. Convert it to ESPHome to connect to Home Assistant (or AWS IoT SiteWise)

UV_Sensor.ino

ino - 2.27 kB - 09/03/2024 at 20:22

Download

  • 1 × M5StickC Plus
  • 1 × Sparkfun AS7331 UV Sensor

Enjoy this project?

Share

Discussions

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates