Connect the Red wire (+5V) to a analog input port +5 terminal Connect the black wire to the right hand terminal of digital sensor 5 or 6 Connect the yellow wire to the left hand terminal the digital sensor port you picked for the black wire.