Connection of Arduino Leonardo with typical 3 -pins Hall Effect Sensor

See a project