I think you should assign the distance to your cloud variable.
I mean
ultraSensor = distance;
This way, the cloud variable ultraSensor will be automatically updated.
I think you should assign the distance to your cloud variable.
I mean
ultraSensor = distance;
This way, the cloud variable ultraSensor will be automatically updated.