Index

Code Snippets

  1. Basic 1 Wire Read Temp
  2. Basic BMP180
  3. Getting 1 Wire Device Address's
  4. GSM signal tester
  5. Multi 1 wire by device address
  6. SMS Sender
  7. Software Serial Mode Set
  8. Wifi Signal Tester
  9. UVM30A Analogue Sensor
  10. Tipping Bucket Rain with Light (Current WIP)
  11. Another way to Count

UVM30A Analogue Sensor

Simple Voltage checker for UVM30A

# This Sample code is for testing the UV Sensor .
#Connection:
    VCC-5V
    GND-GND
    OUT-Analog pin 0
*/
 
void setup() 
{
  Serial.begin(9600);// open serial port, set the baud rate to 9600 bps
}
void loop() 
{
  int sensorValue;
  sensorValue = analogRead(0);//connect UV sensors to Analog 0    
  Serial.println(sensorValue);//print the value to serial  
  delay(200);      
}