Gravity Flexible Piezo Film Vibration Sensor

The 1023 is as HIGH/1/5v when you use D(igital output) with "17/18" as LOW/0/0v. The 17/18 should be zero, so you have a grounding problem or your sensor has an internal ground problem.