Working on post_event function in sensor_sm... no tests or compiles yet