Raspberry Pi python script for sensor unit in Laser Tripwire Security System