Unload media if installed. Check for a media jam around the media sensor. Looking from the rear of the printer, the media sensor is located 4 inches (10 cm) from the left side of the entry platen.
If the media sensor is not blocked it may be faulty and need to be replaced. Contact HP for assistance.