-
Supply Voltage: 3.3V to 5V
-
Interface: Analog
Sample Code:
///Aduino Sample Code
void setup()
{
Serial.begin(9600); //Set serial baud rate to 9600 bps
}
void loop()
{
int val;
val=analogRead(0);//Read rotation sensor value from analog 0
Serial.println(val,DEC);//Print the value to serial port
delay(100);
}
See product video: //youtu.be/zd0u5hEEJGk