update SenseBarrier.c