An employee was debugging/troubleshooting the teach sensor on a load-handling device (LHD) inside of a cell. The LHD unexpectedly moved to the home location and struck the employee on their head. The employee sustained a head injury, an aspiration-induced lung injury, and fractures to his lower back and right ankle.