The other day I was able to run the sketch with a high sensitivity value
What does this mean? What gets switched?
as soon as I switched it to a low sensitivity value and uploaded the code I received the Exit status 1 error message
Uploading code is not dependent on the actual code. Something must have changed with the hardware.
Just what are you trying to do?
Please post a schematic and photograph of your wiring.