Per joan's comment below the answer, you can't use 5V logic with a Raspberry Pi's GPIO pins. They're only 3.3V tolerant and have no over-voltage protection, so if you exceed 3.3V you're quite possibly looking at a fried Pi (I notice I added a similar comment to my answer to the question you've linked to).
More often than not the output voltage of a sensor like yours is determined by its input voltage. If you powered it using 5V it's likely that it was sending 5V logic back out again. This would be bad news for your Pi. It would be sensible to confirm the output voltage level of the sensor using a meter before attempting to reconnect it.
It would be worth checking that your Pi's still working as it should by running some tests on your GPIO pins. Presuming that everything's still up and running, you should connect the sensor to the Pi's 3.3V pin (rather than the 5V pin), test its output level to ensure that it's compatible with the Pi's 3.3V input requirement, then reconnect the sensor output pins to the Pi's GPIO pins and try again.