Relay test script for Raspberry Pi.