• Your position
  • Sign In or Join Free
Your position: Home / Sensors

Keyestudio GY-ML8511 Ultraviolet Sensor Module for Arduino (Black & Environmental-friendly)

    Please select the information you wantX
(197 available)
Shipping Cost:
Estimated Delivery Time:
Please select the country you want to ship from
  • Description
  • Reviews(20)

KS0273 (1)KS0273 (2)KS0273 (3)KS0273 (5)KS0273 (4)


The module uses a common ML8511 UV sensor original, which can be used to detect indoor or outdoor UV density. The sensor IC uses a highly integrated SOI-CMOS technology, suitable for digital and analog circuits. By the principle of converting the photocurrent to the voltage, it can detect the UV intensity and is well used for external circuits. ML8511 can be proportional to the UV light quantity to output analog voltage, so it can be directly connected to the built-in MCU A / D digital / analog converter without photoelectric conversion circuit. Using small and thin surface package, it is suitable for portable equipment. The model also has a fast power saving mode up to 0.1uA, suitable for wearable smart devices, mobile phones and other equipment.



Working voltage:DC 3.3-5V

Working temperature:-20~70°C

Sensitive area:UV-A, UV-B

Sensitive wavelength: 280-390nm

Module size:30 x 22mm


Connection Diagram


Sample Code




  Reads an analog input on pin 0, prints the result to the serial monitor.

  Attach the center pin of a potentiometer to pin A0, and the outside pins to +5V and ground.


 This example code is in the public domain.



// the setup routine runs once when you press reset:

void setup() {

  // initialize serial communication at 9600 bits per second:




// the loop routine runs over and over again forever:

void loop() {

  // read the input on analog pin 0:

  int sensorValue = analogRead(A0);

  // print out the value you read:


  delay(1);        // delay in between reads for stability





Connect the wire and burn the program; after power-on, open the serial monitor to display the data as the figure shown below:



To irradiate the sensor with ultraviolet light , the serial monitor will display the data changes as shown below:



Average rating: 5.0 based on 20 reviews
Share your thoughts with other customers
Write a review
Product reviews can be carried out after the member login, please click here to login
Kit for Arduino
Robot for Arduino
Raspberry Pi
Overseas Clearance Sale
Ship to EU
Ship to US
Ship to CA
New Arrivals
Main products
Controller board
Expansion board
Learning kit
Robot KIT
Easy-plug RJ11 series
Easy-plug Learning Kit
Easy-plug Sensor