Metal Touch Sensor Module KY-036 in Arduino

Learn the interfacing Metal Touch Sensor Module KY-036 in Arduino. The touch sensor will generate certain output on touching metal spike of the sensor. Measured input from the Sensor is then fed to the amplifier. Amplifier then sends analog data to the analog output pin of the module. In this, we are going to interface LED using the Metal Touch Sensor Module KY-036. So, let’s start.

Step 1: Required Components

Metal Touch Sensor Module x 1
Breadboard x 1
Arduino Uno Board x 1
Jumper Wires

Step 2: Circuit Time

There are four pins in the Touch Sensor Module, VCC, GND, Analog output, Digital output. Connect VCC of the module to +5v of Arduino and GND of the module to Arduino Ground. Then, connect the Digital output of the module to pin 8 of Arduino and Analog output pin of the module to analog pin A0 of Arduino.

Step 3: Code Time

This is code for interfacing of the Metal Touch Sensor Module with Arduino. Firstly, declare pins for LED, digital output. In Setup, set LED pin in output mode and sensor pin in input mode. This will make pin 8 of Arduino receive inputs from the sensor and provide certain output to an LED. In the loop, check the status of the sensor pin. If the status of the sensor pin is HIGH then provide a HIGH output to LED or else provide a LOW output to an LED.

Step 4: Upload the code to Arduino

Upload the above-given code to the Arduino Uno Board after the components are set as per the Circuit Diagram. On touching the metal spike you will notice LED connected to pin 8 is turned on.

Learn more information about uploading code to Arduino Uno.

1 thought on “Metal Touch Sensor Module KY-036 in Arduino”

  1. Hi I want to interface the touch-sensor modules using Arduino UNO for Home automation to controlling relay but the garbage value are present in it i think it was switch bouncing and i used capacitor 0.1 uf to de-boubce the switch but was not stabled how to avoid this garbage values please give some suggestions.

Leave a Reply