The Grove – 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 Grove - 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.

Dependencies:   mbed

Fork of Seeed_Grove_UV_Sensor_Example by Austin Blackstone

Revision:
0:26a3a6edbb11
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Sep 05 03:00:54 2014 +0000
@@ -0,0 +1,12 @@
+#include "mbed.h"
+
+AnalogIn sensorUV(A0);
+
+int main() {
+    float value;
+    while (true) {
+        value = sensorUV;
+        printf("\rUV Value = %3.2f%%",value*100);
+        wait(.1);
+    }
+}