Edited the Sensor for the protocol i decided upon