I would look beyond tread depth when deciding whether a motorcycle tyre needs replacing. A tyre can have visible tread and still be unsafe if it has structural damage, has aged badly or is losing pressure.
Start with a slow visual check of both tyres. Look for cuts, cracks, bulges, exposed cords, embedded objects and uneven wear. Check the sidewalls as well as the tread, and inspect after any substantial impact with a rock, pothole or kerb. If you notice a bulge or exposed material, I would avoid riding and seek professional advice.
For most motorcycles over 50cc in the UK, the legal minimum is generally 1 mm of tread across at least three-quarters of the tread breadth around the entire circumference, with the original tread pattern visible on the remaining area. Rules differ for smaller motorcycles, so check the applicable guidance. I would not wait until the legal limit if grip or condition has already deteriorated.
Age matters too. Check the tyre manufacturer’s recommendations and have older tyres inspected, particularly if the bike has been stored for long periods. My practical tip is to record pressures and tread condition monthly so changes are easier to spot. It can help to review Trellesport alongside the points above. Just to add, a persistent pressure loss or new vibration is a reason to have the tyre and wheel checked promptly.