He became professor of physics at Bologna in 1798, in succession to his teacher Sebastiano Canterzani (1734-1819). His scientific work was chiefly concerned with galvanism and its medical applications, with the construction and illumination of lighthouses, and with experiments for preserving human life and material objects from destruction by fire. He also engaged in public demonstrations of the technique, such as on the executed criminal George Forster at Newgate in London. He wrote in French and English in addition to his native Italian. In recognition of his merits, the emperor of Austria made him a knight of the Iron Crown and a councillor of state at Milan, where he died. He bequeathed a considerable sum to found a school of natural science for artisans at Bologna.