Same-day dispatch before 2 PM · Free delivery over ₹999 · GST invoices Get the appPrices incl. GST
Geekobot
Snap & SendNEWGeeko AIWhere's myOrder
Log in
Products
  • Projects
    • Component guidesHow parts work, with code you can run
    • Learning pathsFrom your first LED to your first robot
    • Workshops & eventsOnline sessions for makers and classes
    • ElectrolarkFree guided builds, simulator and certificates
    • Students & teachersStudent discount and classroom help
    • CommunityShare builds and ask other makers
    • CalculatorsOhm's law, LED resistor, 555 and 100+ more
    • Circuit builderWire parts and run the circuit, powered by Electrolark
    • Geeko AIAsk what to buy or how to wire it
    • Snap & SendPhotograph a part or list, we find it
    • Part finderAnswer a few questions, get the right part
    • Compatibility checkWill these two parts work together?
    • Compare partsSpecs side by side
    • Business & bulk ordersGST invoices, credit and volume prices
    • Request a quotationSend your list, get a quote
    • Classroom kitsPer-student kits and lab bundles
    • Gift cardsFor students, teams and events
  • Atal Tinkering Lab
BOM to cart
Geekobot

Components, kits and know-how for makers, students, engineers, labs and businesses across India.

Ask Geeko AIOrders, parts and projects, any timeEmail supportReply within 1 working dayGet the Geekobot appAdd it to your home screen, free

Follow us

Shop

  • Boards & SBCs
  • Sensors & Modules
  • IoT & Wireless
  • Drone & FPV
  • 3D Printing
  • Filaments & Resins
  • Motors & Drivers
  • Power & Batteries
  • Semiconductors
  • Passive
  • Displays & LEDs
  • Switches & Relays
  • Wires & Cables
  • Prototyping
  • Tools & Test
  • Robotics
  • STEM Kits
  • Atal Tinkering Lab
  • Mechanical Parts
  • Audio

Orders

  • Track your order
  • Help & support
  • Shipping and delivery
  • Refunds and cancellation
  • Contact us

Learn

  • Projects
  • Geeko AI project assistant
  • Learning paths
  • Guides
  • Calculators
  • Electrolark: free guided builds

Part tools

  • Part finder
  • Compare parts
  • Will it work with my board?

Institutions

  • Classroom kits
  • Atal Tinkering Lab
  • Students & teachers
  • Workshops & Events

Business

  • Business & education
  • Request a quotation
  • BOM bulk upload
  • Quick order by SKU

Company

  • About Geekobot
  • Community
  • Gift cards
  • Terms & conditions
  • Privacy policy
  • Product directory
  • Sitemap

© 2026 Geekobot, a trade name of OLatus Systems Private Limited. All rights reserved.

20, 1st Floor, Neeladri Complex, 10th Cross, Sampige Rd, 2nd Main, Malleshwaram, Bengaluru, Karnataka 560003 · GSTIN 29AACCO0462F1ZM

+91 91810 15607 · connect@geekobot.in · Monday to Saturday, 10 AM to 2 PM IST

UPI · CARDS · NETBANKING · GST INVOICES

ShopProjectsGeeko AIGuides
Compare 0 parts →
Log in

Shop by category

Shop all components
  • Boards & SBCs1,910 products
    • Alternative Single Board Computers
    • Arduino Ecosystem
    • FPGA & Logic Boards
    • Microcontroller & Wireless Boards
    View all
  • Sensors & Modules4,701 products
    • Biomedical & Heart Rate
    • Current, Voltage & Power
    • Force, Weight & Pressure
    • Gas, Weather & Environmental
    View all
  • IoT & Wireless2,314 products
    • RF Modules
    • RFID & NFC
    • Antennas & RF Accessories
    • Cameras & Smart Vision
    View all
  • Drone & FPV3,558 products
    • Flight Control & Navigation
    • FPV Video & Optics
    • Frames & Structural Parts
    • Motors & Propulsion
    View all
  • 3D Printing2,204 products
    • 3D Printers
    • 3D Scanners & Digitizers
    • Laser Engravers & Cutters
    • Material Management & Upgrades
    View all
  • Filaments & Resins1,472 products
    • Filaments
    • Photopolymer Resins
    View all
  • Motors & Drivers463 products
    • BLDC Motor Drivers
    • DC & Geared Motors
    • DC Motor Drivers
    • Linear Actuators & Solenoids
    View all
  • Power & Batteries557 products
    • Battery Holders & Connectors
    • Breadboard Power
    • Chargers & BMS
    • DC-DC Converters
    View all
  • Semiconductors295 products
    • Diodes & Rectifiers
    • Interface & RF Encoder ICs
    • Logic ICs (74xx)
    • Logic ICs (CD4000)
    View all
  • Passive67 products
    • Capacitors
    • Circuit Protection
    • Crystals & Oscillators
    • Inductors
    View all
  • Displays & LEDs572 products
    • 7-Segment & Dot Matrix
    • Addressable LEDs
    • Character LCDs
    • Graphic LCDs
    View all
  • Switches & Relays184 products
    • Keypads & Touch
    • Push Buttons & Tactile
    • Relay Modules
    • Relays
    View all
  • Wires & Cables233 products
    • Board-to-Wire Connectors
    • Crimp & Splice
    • Headers & Dupont
    • Heat Shrink & Sleeving
    View all
  • Prototyping101 products
    • Breadboards
    • Interface Modules
    • PCBs & Perfboards
    View all
  • Tools & Test717 products
    • Bench Power Supplies
    • Hand Tools
    • Measuring Tools
    • Meters & Testers
    View all
  • Robotics180 products
    • Humanoid & Legged Robots
    • Robot Chassis & Platforms
    • Robotic Arms & Grippers
    • Wheels & Casters
    View all
  • STEM Kits268 products
    • Arduino Learning Kits
    • Coding & IoT Kits
    • Early Coding (Ages 3-8)
    • Invention Kits
    View all
  • Atal Tinkering Lab196 products
    • Package 1: Electronics, Robotics, IoT and Sensors
    • Package 2: Rapid Prototyping Tools
    • Package 3: Mechanical, Electrical and Measurement Tools
    • Package 4: Power Supply, Accessories and Safety Equipment
    View all
  • Mechanical Parts212 products
    • Bearings
    • Brackets & Mounts
    • Couplers
    • Fasteners & Standoffs
    View all
  • Audio109 products
    • Amplifier Modules
    • Buzzers & Sirens
    • Speakers
    View all
  1. Home
  2. ›Guides
  3. ›Sensors
  4. ›UV Sensors

Component guide · Beginner · 3 min read

UV Sensors

GUVA-S12SD, ML8511 and VEML6070

By Geekobot Learning Team · Updated 24 Oct 2026

On this page
Short answerHow UV sensors workWiring and readingGetting sensible readingsTry itCommon mistakesFAQsParts and next steps
Short answer

A UV sensor module measures ultraviolet light, mostly UVA and UVB from sunlight. Analog types such as the GUVA-S12SD and ML8511 give a voltage that rises with UV intensity, read on an analog pin. I2C types such as the VEML6070 return a number directly. With calibration you can estimate the UV index, but hobby modules are indicators, not certified meters.

Key specs at a glance

Sensing range
Roughly 240 to 370 nm depending on the part
Outputs
Analog voltage (GUVA-S12SD, ML8511) or I2C (VEML6070)
Supply
Typically 3.3 V; many modules accept 5 V
GUVA-S12SD
Photodiode plus op-amp; about 0.1 V per UV index step on common modules
ML8511
About 1 V in darkness rising to about 2.8 V at strong UV, with an enable pin
Window
Must face the sky with no glass or plastic in front
01

How UV sensors work

Inside is a photodiode made to respond mainly to ultraviolet wavelengths. The tiny photocurrent is amplified by an op-amp into a voltage, or digitised on the chip and sent over I2C.

The UV index is a weighted measure of sunburn-causing UV. A simple sensor does not apply that weighting exactly, so any UV index you calculate is an estimate. For a classroom weather station or a "wear sunscreen" warning light that is fine; for health or safety decisions, use a calibrated meter.

02

Wiring and reading

Analog modules: VCC to 3.3 V (or 5 V if the module allows), GND to GND, OUT to an analog pin. On an ESP32, keep the output below 3.3 V and use an ADC1 pin if Wi-Fi is on.

For a GUVA-S12SD module, divide the output voltage by about 0.1 V to get a rough UV index, then check it against a weather service on a clear day and adjust the factor. For the ML8511, tie EN high, read the output and also read the 3.3 V rail on a second pin to cancel supply errors, as the datasheet application notes suggest.

I2C modules: connect SDA and SCL and use the maker's library; the integration time setting trades speed for sensitivity.

03

Getting sensible readings

  • ✓Glass and most clear plastics block much of the UV, so a sensor behind a window reads almost nothing. Use a UV-transparent cover such as PTFE film or quartz, or leave the window open under a rain hood.
  • ✓Point the sensor at the sky, not at the sun, for a stable reading.
  • ✓Average several readings; clouds change UV fast.
  • ✓Indoor lights give very little UV, so a near-zero reading indoors is normal.
04

Try it: ADC resolution calculator

Change the values and the diagram and results update as you type.

05

Common mistakes to avoid

  • !Mounting the sensor behind glass or acrylic.
  • !Treating the reading as a certified UV index.
  • !Feeding a 5 V output into a 3.3 V ADC pin.
  • !Testing indoors and assuming it is broken.
  • !Leaving the ML8511 enable pin floating.
06

Frequently asked questions

Which UV sensor is best for Arduino?

The GUVA-S12SD analog module is the simplest. I2C parts such as the VEML6070 avoid analog noise.

Can a UV sensor measure UV index?

Approximately. Calibrate against a trusted source and treat it as an estimate.

Why does my UV sensor read zero indoors?

Indoor light contains very little UV and windows block most of what comes from outside.

Can it detect UV LEDs?

Usually yes for 365 nm and 395 nm LEDs, though response falls off at the longer wavelengths.

Does it work at 3.3 V?

Most modules do. Check the module's voltage range and keep the output within your ADC range.

Parts for this guide

  • GYML8511 Analog UV Light Sensor Module – 280-390nm Detection, 3-5V
    ₹1,939View
Shop Light & Optical Sensors

Calculators

ADC resolution calculator

Terms in this guide

PhotodiodeA diode that produces a small current in proportion to light. Faster and more linear than an LDR, used in IR receivers and light meters.ADCAnalog-to-digital converter: turns a voltage into a number. A 10-bit ADC gives 0 to 1023; a 12-bit ADC gives 0 to 4095.Op-ampOperational amplifier: an IC with two inputs and one output that amplifies the difference between them, used for sensor amplifiers, filters, buffers and comparators.CalibrationMeasuring a sensor against known conditions so its raw numbers can be converted into meaningful values, such as dry and wet readings for a soil sensor.

Projects that use it

Put this into practice: 26 step-by-step builds in our project library use parts from this guide.

Beginner · 1 hourUV index monitor with sunburn warningView projectBeginner · 30 minutesUV index meterView projectBeginner · 1–2 hoursWi-Fi UV index monitorView project
Browse all 26 projects

Keep learning

Component guideBeginnerLDR Light SensorsAn LDR (light-dependent resistor or photoresistor) has high resistance in the dark, about 1 MΩ, and low resistance in bright light, under 1 kΩ.3 min read · SensorsConcept explainerBeginnerADCs ExplainedAn analog-to-digital converter (ADC) measures a voltage and returns a number.4 min read · Electronics FundamentalsComponent guideIntermediateOp-Amps for BeginnersAn operational amplifier (op-amp) amplifies the voltage difference between its two inputs by a huge amount; feedback resistors turn that into a precise, useful gain.4 min read · Semiconductors & ICsComponent guideBeginnerESP32 GuideThe ESP32 is a low-cost 3.3 V microcontroller from Espressif with built-in Wi-Fi and Bluetooth, used for IoT devices, smart-home controllers and web dashboards.5 min read · Boards & MicrocontrollersComparisonBeginnerBME280 vs BMP280The BMP280 measures temperature and air pressure; the BME280 adds relative humidity.3 min read · Sensors

Sources

  • GenUV GUVA-S12SD datasheet
  • Lapis ML8511 datasheet
  • Vishay VEML6070 datasheet
  • WHO Global Solar UV Index guide

Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

On this page
Short answerHow UV sensors workWiring and readingGetting sensible readingsTry itCommon mistakesFAQsParts and next steps
Need a hand?Ask Geeko AI which part fits your project, or talk to the Geekobot team.Ask Geeko AIHelp & support

Parts for this guide1 item · ₹914

SeeedStudio Grove UV Sensor

Ask the Community

Ask a question