Compressor Code

I need help. I would like to somebody write or send me the piece of code that turn on the compressor. my e-mail is [email protected]. I Thank you all for any help you can give.

It is already in the default FRC code, Compressor spike has to be on number 8 relay, The pressure switch has to be on digital in 18 and the default code will control the compressor.

yes, but you also have to know that the switch wires to the ground and signal pins of the digital io, not the +5 volts