Arduino libraries exist for all sorts of complex tasks; control LEDs, read sensors, create sounds, manipulate data, write to displays, and much more.