updated mock sensor script