Updated sensor test script