add sensor demo and update library