Professional Documents
Culture Documents
CODE:
/* This code is to be used with KY-024 Hall effect sensor
* It displays both Analog and Digital values given by the sensor
* Refer to www.surtrtech.com for more details
*/
int Val1=0,Val2=0; //Here you can store both values, the Val2 can
be boolean
void setup() {
Serial.begin(9600);
pinMode(Hall_Sensor_D,INPUT);
void loop() {
OUTPUT:
Lab 8