HAL Sensors Uni- and Bipolar Hall IC Switches for Magnetic Field Applications TLE 4905L This hall sensor is an open collector sensor, So how to get the output from this sensor is you need to add a resistor RL 1.2k ohm as a circuit below. Application Circuit from Datasheet Signal capture from oscilloscope Sample Code: #include <TimerThree.h> //Speed Sensors #define speed_r 2 #define speed_l 3 #define length_4pulse 80 //millimeter volatile int speed_pulse = 0; volatile float current_speed = 0; void setup() { // put your setup code here, to run once: Serial.begin(115200); //Speed Detect pinMode(speed_r, INPUT); pinMode(speed_l, INPUT); attachInterrupt(digitalPinToInterrupt(speed_r), speed_count, RISING); Timer3.initialize(100000); // initialize timer3, and set a 1/10 second period Timer3.attachInterrupt(speed_calculate); } void loop() { // put your main code here, to run repeatedly: //Correct Data Serial.println("----&q