Instructions
IDUINO for maker’s life
www.openplatform.cc 31
{
val = digitalRead (SENSOR) ; // read sensor line
if (val == LOW) // when the Hall sensor detects a magnetic field, Arduino
LED lights up
{
digitalWrite (Led, HIGH);
}
{
digitalWrite (Led, LOW);
}
}
******Code End******
Module 9:Touch Sensor
1 Introduction
This module is a metal touch sensor, it looks like module7(flame sensor module), has 4
pin, including one analog pin and digital pin, but usually we just use the digital pin. Which
can be used to detect whether a human body is touching the metal detector.
Specification
Operation voltage: 5V
Both digital and analog output pin
Adjustable sensitive
Size: 45*15mm