A way to smoothen this sketch?

Thanks,
sketch in attachment.

16_pumphouse.ino (34.5 KB)