added c example, renamed 'sd' to 'sensor'