How to connect a rotary encoder to arduino using a breadboard?

I'm using a KY-040 rotary encoder to use with Arduino, but I have no idea how to connect it to the Arduino properly using a breadboard. Anyone know how?

Mr. Google showed the connections as the very FIRST image.


The KY-040 module has five pins to connect it. Whilst you could just stick it in a breadboard, presuming you have a UNO (as unfortunately, most people seem to have to start), it is easier to connect using male-female "Dupont" jumpers as per this diagram from this helpful site: