Microscopic derivation of the equations of hydrodynamics