hüten
to herd
To supervise and protect a group of animals, such as sheep or cattle, while they are grazing in a pasture.
Der Hirte hütet seine Schafherde auf den Bergwiesen.
The shepherd herds his flock of sheep on the mountain meadows.

to herd / to guard
Loading your saved state.
to herd
To supervise and protect a group of animals, such as sheep or cattle, while they are grazing in a pasture.
Der Hirte hütet seine Schafherde auf den Bergwiesen.
The shepherd herds his flock of sheep on the mountain meadows.

The core idea of 'hüten' is 'to supervise, protect, watch over.' This idea connects all meanings: you watch over animals, a secret, yourself, or stay in bed under supervision to recover.
Ein guter Anführer hütet sein Volk.
A good leader protects his people.
In the meaning 'to be careful,' the verb is reflexive and is always used with the preposition 'vor' and the dative. The structure is: subject + hütet sich + vor + someone/something (dative).
Hüte dich vor falschen Freunden!
Beware of false friends!
The expression 'das Bett hüten' is a fixed idiom. It means that you have to stay in bed because of an illness and is not understood literally.
Der Arzt hat gesagt, ich soll eine Woche lang das Bett hüten.
The doctor said I should stay in bed for a week.
In its original meaning, 'hüten' is usually combined with herd animals. Typical examples are 'Schafe hüten' (to herd sheep), 'Ziegen hüten' (to herd goats), or 'Rinder hüten' (to herd cattle).
Schon als Kind lernte er, die Ziegen zu hüten.
Even as a child, he learned to herd the goats.
In addition to concrete things, you can also 'hüten' abstract things. Common combinations are 'ein Geheimnis hüten' (to keep/guard a secret) or 'einen Schatz hüten' (to guard a treasure).
Er hütete das Familienrezept wie einen Schatz.
He guarded the family recipe like a treasure.
to protect
'schützen' and 'hüten' can both mean that you look after something so that nothing happens to it. 'schützen' is the more general word and fits with people, things, nature, or protection from a danger. 'hüten' sounds more like careful guarding or watching over something. It is typically used with animals such as sheep, or with something valuable such as a secret. When it is simply about safety from a danger, 'schützen' is usually more natural. When someone carefully guards or looks after something, 'hüten' fits well.

Der alte Hirte hütet die Schafe auf der Wiese.
The old shepherd herds the sheep in the meadow.
Diese Creme schützt die Haut vor der Sonne.
This cream protects the skin from the sun.