write_parameter_frame to sensor example