The words former and latter refer to two items.
The engineer and the technician immediately began to fix
the mechanism, the former checking the valve
readings while the latter began opening the
housing.
These terms require the reader to identify what they refer to, however, and thus should be used with care. If in doubt, revise to name the items referred to.