code for Senseid demo.