OMRON-E6B2-CWZ6C 1000P/R (very affordable off eBay from China )
I have got it to work using interrupts on the Nano.