Sodaq One battery and sensor monitor help needed!

Hi Guys,

I have a sodaq one board which i use with the universal tracker code and Cayenne as a gps tracker. For a quick project that i need to finish today, i need an addition to this.

Most important thing is to be able to connect an external sensor to the board( it has a simple relay that is opened/closed when there is an alarm) so that if the sensor triggers, the sodaq will send a trigger to cayenne so we can see the alarm has triggered.
Secondly, i would like to monitor an external 12v battery.

As i am not realy good with code and i dont have much time, is there someone willing to help me?

thanks in advance!