Haotian_Pressure Measurement

Press the face then the LCD screen can show the pressure.

When you are angry, you may want to hit somebody. This help you to express your angry and show you angry level.

7F43438E-85F7-4CFD-9ABB-4E18FB38540C

#include <LiquidCrystal.h>

LiquidCrystal lcd(12,11,5,4,3,2);
int sensorPin = A2;
int val=0;

void setup()
{
lcd.begin(16,2);
lcd.print(“press”);
delay(2000);JN
lcd.clear();
}

void loop()
{
val= analogRead(sensorPin);
lcd.print(“Pressure”);
lcd.setCursor(0,1);
lcd.print(val);
delay(1000);
lcd.clear();
Serial.print(val);

}

Leave a Reply

Your email address will not be published. Required fields are marked *