A gas engineer has been sentenced to 120 hours of community service for putting tenants at risk in rented homes in Chelmsford.