What kind of sensor I have to huse?

Yes, either of those will work to measure the number of revolutions.