Hi Lefty Thanks for the quick reply,
Im using the arduino for just a small aspect of my project so I would only be a novice when it comes to programming so please bear with me.
Ive used the following code but seem to be getting very fluctuating readings:
int analogPin = 2; // connected to analog pin 2
// outside leads to ground and +5V
int samples[8];
int i;
int pressure=analogRead(analogPin);
void setup()
{
Serial.begin(9600); // setup serial
}
void loop()
{
for (i=0;i<=7;i++){ // gets 8 samples of pressure
pressure = analogRead(analogPin); // read the input pin
long pressure = 950 + pressure / 8.5; //convert it to milli bars
Serial.print("\t pressure = ");
Serial.print(pressure); // print the pressure
Serial.println(" mb");
delay(5000); // wait 5 second before next sample
}
An example of my reading would be it would start at a value of say 750mb, then go 0mb..0mb then when I apply pressure using a syringe it would jump up to 1bar,But then go 0mb..0mb then 1bar etc.