A worker has been sentenced after breaching a prohibition notice for gas work and for leaving gas appliances in a dangerous state.