To get the values from the flex sensor you need a 22K resistor.
-
void setup() {
-
Serial.begin(9600);
-
}
-
-
void loop() {
-
int sensorValue = analogRead(A0);
-
Serial.println(sensorValue, DEC);
-
}
See how the sensor can be use in a project like Bad posture by Ellen Sundh.
Strongly suggest adding a “google+” button for the blog!
Think you need a dictionary/ spellchecker! Its a diode, not diod.
Also need to check your “Control relay with TIP120″ circuit, you have 12V continuously on the relay, the transistor is not switching it, and better to use a 1K resistor on the base.