|Pin on Raspberry Pi| Pin on Sensor or Relay| |:-------|:-------| |3.3V (Pin 17)| VCC on sensor|