When I was a kid, I sometimes wondered how a sprinkler "knew" how to change directions without being powered with electronics. I think it wasn't until I was in my late 30s that I came across this GIF and I realized how insanely genius a simple sprinkler really is.
EDIT: Some people have kindly pointed out that this GIF was in fact from a demonstration on how different gears function and not from an actual sprinkler as I had originally led to believe. Other people have been assholes about it.