The invention relates to an electronic device for controlling an access ramp to a door of a vehicle, the ramp being able to move from a retracted configuration to a deployed configuration. The electronic device includes:a detection module configured to detect, via at least one sensor, at least one element of interest located in an area near the door, each sensor being able to be connected to the detection module;a command module configured to command the passage of the ramp from one configuration to the other configuration as a function of the detection of an element of interest.