Established as a specialized division within the Stormtrooper Corps known simply as the Sandtrooper Division, sandtroopers served as part of the Imperial Army during the reign of the Galactic Empire.
They were deployed to desert locations, such as the Outer Rim world of Tatooine.
On planet, the sandtroopers had to deal with tribes of Tusken Raiders.
Under the orders of the Sith Lord Darth Vader and Grand Moff Wilhuff Tarkin, a detachment regiment of sandtroopers were dispatched to the surface of Tatooine, where they searched for the missing Death Star plans, which were hidden in the astromech droid R2-D2.
Source: https://starwars.fandom.com/wiki/Desert_stormtrooper