NodeMCU Interfaced Knocking Sensor KY-031

Updated: Jul 2, 2021

In this project, we will learn about Knock Sensor or Vibration Sensor (sometimes called as Tap Sensor) and how a Knock Sensor works and finally how to Interface a Knock Sensor with NodeMCU 12E and control a Relay.


Components Required

NodeMCU EsP8266 12E

Knock Sensor KY-031



Knock Sensor KY-031

As the name suggests the Knock Sensor Module produces the Digital output on the detection of Knock i.e. vibration stroke. Further, the change in voltage level can be manipulated to produce the desired output and can be used in a variety of applications.