ghost detector not working

Please have a look at how to post your code.

To print stuff you need the “Serial.begin(9600);” statement in setup.

No idea where the “serial.pinmode(1600) “ comes from as it doesnt appear in your code listing , but that is an illegal command

BTW Ghosts don’t exist