hi guys
is there someone how to connect a pressure water sensor (only two lines/pins) to the Arduino mega. Now I have tried connect one line/pin to 5v , but for the another pin, I don't know I need to connect to PWM or need connect to A0(Analog)? cause this sensor is very simple and only have two pins/lines should I need the third pin the plug in the Gnd?
it is very important to me could you please anyone who can give me some suggestion ? thank you very much!!
You should probably include details of the sensor, ie a link to the datasheet or at least the maker's website. That "should" explain what comes out the wires 
well ,actually this sensor is very simple, and I couldn't find the maker's website , the attached is the picture of sensor
it is very important to me could you please anyone who can give me some suggestion ?
Please don't waste our time like this.
summersun:
the attached is the picture of sensor
Seems you forgot to attach it.
well, guys, I have fix it , cause the sensor is just a simple water pressure sensor, so I just plug one pin to the 5v and another pin connect 2 jumper line , one jumper line as an digital input signal , and the second jumper line connect to a resistor and connect yo the Gnd.
but I still have a question, now I need write a coding for a M00543 Peristaltic pump which has a duty circle 0.1 ON/0.9 OFF, but how to set delay time for this pump , actually I have read the website https://www.arduino.cc/en/Reference/Delay, but still confuse :delay(1000); where is these 1000 from ,how to calculate in my case ((pump)??
thanks !!