A knock sensor replacement is about $140 to $250 on average. This cost is if you do this job at a shop. If you decide to replace the sensor at home, you will pay less than $100 in most cases.