I have been trying to connect a pir sensor to arduino with the help of gnd, pin number 2 and vcc respectively. It is continuously showing 0 value irrespective of any motion. How to solve this problem. Is the sensor faulty?
more info needed
For help, please read this and try again.
It seems the other questions you asked are from the same level as this... and you're borderline crossposting! You didn't provide the needed info there, either - this seems to be the same or at least a very closely related problem.