Skip to content
View vishwanathgurav's full-sized avatar

Block or report vishwanathgurav

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
vishwanathgurav/README.md Alkohol project
//Program to 


#include <Servo.h>


#include <LiquidCrystal.h>


LiquidCrystal   lcd(2, 3, 4, 5, 6, 7);

int ledPin = 12;

int sensorPin = A1;


Servo   myservo;


int pos = 0;


int value;


void setup()

{


Serial.begin(9600);

lcd.begin(16,2);


pinMode(ledPin,OUTPUT);


   myservo.attach(10);

}


void loop() 

{


int Value   = analogRead(sensorPin);

value = analogRead(A1);



lcd.print("Alcohollevel:");

lcd.println(value);

Serial.println(value);


if   (Value > 500) 

{

    digitalWrite(ledPin,HIGH);

    

      lcd.setCursor(0, 2);

     lcd.print("Alert....!!!");

    Serial.print   ("Alert");

    

      myservo.write(100); 

    

  }   

  else {

    digitalWrite(ledPin,LOW); 

    

      lcd.setCursor(0,   2);

      lcd.print("Normal... :)");

    Serial.print("Normal");

     

     myservo.write(0); 

  }


  



delay(1000);

lcd.clear();


}

Popular repositories Loading

  1. IOT-Project IOT-Project Public

    IOT Home Automation

    HTML

  2. blynk-library blynk-library Public

    Forked from blynkkk/blynk-library

    Blynk library for IoT boards. Works with Arduino, ESP32, ESP8266, Raspberry Pi, Particle, ARM Mbed, etc.

    C++

  3. Alcohol-Detection Alcohol-Detection Public

  4. Alcohol-detections-sensors Alcohol-detections-sensors Public

  5. Alkohol-detection- Alkohol-detection- Public

  6. vishwanathgurav vishwanathgurav Public

    Config files for my GitHub profile.