Heron of Alexandria was a Greek mathematician and engineer who was active in his native city of Alexandria, Roman Egypt in the first century AD. He is considered the greatest experimenter of antiquity. Among his most famous inventions was a windwheel, constituting the earliest instance of wind harnessing on land, as well as the well recognized description of a steam-powered device called an aeolipile.
A major difficulty regarding Heron was to establish the date at which he lived. There were two main schools of thought on this, one believing that he lived around 150 BC and the second believing that he lived around 250 AD. However, both have been proven wrong, since in the early 20th century it was discovered that Heron in one of his writings referred to a recent eclipse which, from the information given by Heron, took place in Alexandria at 23.00 hours on 13 March 62 AD. From Heron‘s writings it is reasonable to deduce that he taught at the Museum in Alexandria, which included the famous Library of Alexandria,. His works look like lecture notes from courses he must have given there on mathematics, physics, pneumatics, and mechanics. Some are clearly textbooks while others are perhaps drafts of lecture notes not yet worked into final form for a student textbook. Actually, nothing is really known of Heron‘s life, but what we do know comes from clues in the 14 known books by him.
One of his books, Metrica, was lost until the end of the 19th century. Scholars knew of its existence only through one of his other books. In 1894, historian Paul Tannery discovered a fragment of the book in Paris. Then, in 1896, Robin Schone found a complete copy in Constantinople. This book is the most famous book that Heron wrote. It consists of 3 volumes, and shows ways to calculate area and volume, and their divisions.
But, besides his mathematical writings, Heron is best known for his invention of automated devices in particular. Heron described the construction of the aeolipile (a version of which is known as Heron‘s engine) which was a rocket-like reaction engine and the first-recorded steam engine (although Vitruvius already mentioned the aeolipile in De Architectura some 100 years earlier than Heron).
The aeolipile was a hollow sphere mounted so that it could turn on a pair of hollow tubes that provided steam to the sphere from a cauldron. The steam escaped from the sphere from one or more bent tubes projecting from its equator, causing the sphere to revolve. The aeolipile is the first known device to transform steam into rotary motion. 
Both Heron and Vitruvius draw on the much earlier work by Greek inventor and mathematician Ctesibius (285–222 BC), who wrote the first treatises on the science of compressed air and its uses in pumps. However, Heron‘s aeolipile was created almost two millennia before the industrial revolution. Another engine used air from a closed chamber heated by an altar fire to displace water from a sealed vessel. The water was collected and its weight, pulling on a rope, opened temple doors. Both inventions are described in Heron‘s book Pneumatica, in which he presented overallaround 80 mechanical apparatus, that work with air, steam or hydraulic pressure.
Heron also described the first vending machine as being one of his construction. When a coin was introduced via a slot on the top of the machine, a set amount of holy water was dispensed, as described in his list of inventions in his book Mechanica. When the coin was deposited, it fell upon a pan attached to a lever. The lever opened up a valve which let some water flow out. The pan continued to tilt with the weight of the coin until it fell off, at which point a counter-weight would snap the lever back up and turn off the valve.
Heron also invented many mechanisms for the Greek theater, including an entirely mechanical play almost ten minutes in length, powered by a binary-like system of ropes, knots, and simple machines operated by a rotating cylindrical cogwheel. The sound of thunder was produced by the mechanically-timed dropping of metal balls onto a hidden drum.
In his book Dioptra, Heron gives extensive explanations about the practical and mathematical methods for land surveying. It also included information about the Dioptra, which was the forerunner of the modern theodolite. It allowed surveyors to calculate angles and heights with great precision. The text also described the odometer, used for calculating distances via the rotation of a wheel of known circumference. the odometer was a chariot with wheels of 4 feet diameter, which turned exactly 400 times in one Roman mile. For each revolution, a pin on the axle engage a 400 tooth cogwheel, thus making one complete revolution per mile. This engages another gear with holes along the circumference, where pebbles (calculi) are located that drop one by one into a box. The number of miles travelled is given simply by counting the number of pebbles. Leonardo da Vinci tried to build it according to Heron‘s description, but failed.
In Optics, Heron formulated the Principle of the Shortest Path of Light: If a ray of light propagates from point A to point B within the same medium, the path-length followed is the shortest possible. It was nearly 1000 years later that Arabic scholar Alhacen expanded the principle to both reflection and refraction, and the principle was later stated in this form by Pierre de Fermat in 1662
In Automatopoietca, Heron included his designs for automatic machines, many of which were programmable computers using gears and knotted ropes. It could be argued that they were the first robots using simple binary language. There, he also described a programmable cart that was powered by a falling weight, while “program” consisted of strings wrapped around the drive axle. In Belopoiica (On Engines of War), Heron gave explanations and diagrams of various weapons of war, including a crossbow known as the Gastraphetes and various other artillery engines.
In Metrica, Heron describes (and proofs) how to calculate the area under a triangle, a method which is known today as Heron’s formula. It has been suggested that Archimedes knew the formula over two centuries earlier, and since Metrica is a collection of the mathematical knowledge available in the ancient world, it is possible that the formula predates the reference given in that work.
At yovisto, you you can learn more about Greek mathematics in the lecture of Prof. N. J. Wildenberger on ‘The Infinity in Greek Mathematics‘.
References and Further Reading:
-  O’Connor, John J.; Robertson, Edmund F., “Heron of Alexandria“, MacTutor History of Mathematics archive, University of St Andrews.
-  “Hero of Alexandria.” Complete Dictionary of Scientific Biography. 2008. Encyclopedia.com
-  Hero of Alexandria in the 1911 Encyclopædia Britannica
-  Michael Lahanas: Heron of Alexandria, at HellenicaWorld
-  Thomas Newcomen and the Steam Engine, SciHi Blog
-  Leonardo Da Vinci – the Prototype of a Renaissance Man, SciHi Blog
-  Pierre de Fermat and his Last Problem, SciHi Blog
-  Heron of Alexandria at Wikidata