UV Ultraviolet Radiation Ray Detection Sensor Module
Description:
The UV Sensor is used for detecting the intensity of incident ultraviolet(UV) radiation. This form of electromagnetic radiation has shorter wavelengths than visible radiation. The UV Sensor is based on the sensor GUVA-S12D which has a wide spectral range of 200nm-400nm. The module outputs electrical signal which varies with the UV intensity, which gives your suggestion if it is a good idea to beach today.
PCB size: 33.0mm X 14.00mm X 1.6mm
Power supply: 3.3 or 5V DC
Compatible interfaces: 2.54 3-pin interface and 4-pin Grove interface
Parameter Min. Typical Max. Unit
Operating voltage 3.0 5 5.5 VDC
Current - 0.3 - mA
Output voltage 0 - VCC VDC
Response wavelength 200 - 370 nm
Demo:
void setup()
{
Serial.begin(9600);
}
void loop()
{
int sensorValue;
long sum=0;
for(int i=0;i<1024;i++)
{
sensorValue=analogRead(A0);
sum=sensorValue+sum;
delay(2);
}
sum = sum >> 10;
Serial.print("The voltage value:");
Serial.print(sum*4980.0/1023.0);
Serial.println("mV");
delay(20);
Serial.print("\n");
}