interfacing encoder to arduino

Solved, thanks