By sight and experience. It‘s not very difficult to cook food without thermometer. We still do it, for example when grilling with coal. Also, humans can eat raw, over-cooked and everything in between for nearly all foods.