Pressure sensor example fix

This is my first pull request so i hope everything is OK.