A galvanometer is an instrument that can detect currents.
Juan wants to measure the current traveling through the straight wire in his experiment. He uses a galvanometer as his tool. He places the wire in between two permanent magnets to measure the current created by the magnetic field.