Strain Gauge variation arduino

Dear friends, I need an urgent help, because I did not find reference in the forum.

I have a strain gauge, I need the arduino to read the variation and every time I vary open or close a door for a certain time 3 or 4ms,

Someone can provide a path or where I can find study material for this sensor, sorry for the English. :o


Hi, I think this module would not be right for what you want.
About use of strain gauges see this link:

You must be superman, being able to pass through a door in 3-4 ms!


int sensorPin = A0; // select the input pin for the Strain Gauge
int sensorValue = 0; // variable to store the value coming from the sensor
const int RelePin = 9; // pino ao qual será ativado/desativado

void setup() {
// declare the ledPin as an OUTPUT:
pinMode(RelePin, OUTPUT); // seta o pino como saída

void loop() {
// read the value from the sensor:
sensorValue = analogRead(sensorPin);

Serial.print("sensor = " );

if (sensorValue > 100) { //se for maior que 100
digitalWrite(RelePin, HIGH); //aciona o pino
delay(400); // tempo em MS nao esta funcionando

if (sensorValue <= 98) { //se for menor ou igual
digitalWrite(RelePin, LOW); //desativa o pino

with the delay not working at the correct time, I wanted to by to enable and disable the pin in 40MS.