A method for controlling an access panel to a recharging device of a motor vehicle powered by an electric and/or heat engine and including a sensor for detecting an external environment of the vehicle, a system for detecting a badge worn by a user and a sensor configured to detect whether the…