The first thing you need to do is to learn more about this code. Then test the sensor for resistance as well as for voltage. There is a range recommended range for resistance for each sensor. And also, test for AC voltage. So, if you tap the sensor, it should produce an AC voltage between 0.5v and 2v. If the sensor does not create enough resistance and voltage it means that it is dead.