A new air compressor

How did you get the 12v fan to kick on when the compressor does? 120v vs 12v?