An optical device comprising: a printed circuit board comprising an image capture electronic circuit, a lens holder extending along the optical axis of the optical device from its top extremity to its bottom extremity, said lens holder comprising a top optical element arranged on the top extremity of the lens holder, the lens holder being mounted on the printed circuit board so as to align, along the optical axis of the optical device, the image capture electronic circuit and the top optical element; and a heating element comprising a heating part arranged in contact with the top optical element and comprising a first electrically conductive element and a second electrically conductive element, each electrically conductive element (26, 28) extending from the heating part to their bottom extremity (30, 32), the bottom extremity (30, 32) of each electrically conductive element (26, 28) being directly attached in electrical contact with the printed circuit board, characterized in that the first electrically conductive element and the second electrically conductive element is a wire with each bottom extremity (30, 32) of each electrically conductive wire (26, 28) comprising an electrically conductive rigid end, the optical device further comprises a first wire insertion guide element and a second wire insertion guide element, the first wire insertion guide element and the second wire insertion guide element are both an open cavity extending through a cylindrical wall of the lens holder from an open top extremity (54, 46) of the cylindrical wall to an open bottom extremity (58, 60) of the cylindrical wall, the first electrically conductive wire and the second electrically conductive wire are respectively arranged in the first wire insertion guide element and in the second wire insertion guide element, the printed circuit board comprises two pass through holes (62, 64) from its top layer to its bottom layer; and each rigid end is welded onto the bottom layer of the printed circuit board (62, 64). a printed circuit board comprising an image capture electronic circuit, a lens holder extending along the optical axis of the optical device from its top extremity to its bottom extremity, said lens holder comprising a top optical element arranged on the top extremity of the lens holder, the lens holder being mounted on the printed circuit board so as to align, along the optical axis of the optical device, the image capture electronic circuit and the top optical element; and a heating element comprising a heating part arranged in contact with the top optical element and comprising a first electrically conductive element and a second electrically conductive element, each electrically conductive element (26, 28) extending from the heating part to their bottom extremity (30, 32), the bottom extremity (30, 32) of each electrically conductive element (26, 28) being directly attached in electrical contact with the printed circuit board, characterized in that the first electrically conductive element and the second electrically conductive element is a wire with each bottom extremity (30, 32) of each electrically conductive wire (26, 28) comprising an electrically conductive rigid end, the optical device further comprises a first wire insertion guide element and a second wire insertion guide element, the first wire insertion guide element and the second wire insertion guide element are both an open cavity extending through a cylindrical wall of the lens holder from an open top extremity (54, 46) of the cylindrical wall to an open bottom extremity (58, 60) of the cylindrical wall, the first electrically conductive wire and the second electrically conductive wire are respectively arranged in the first wire insertion guide element and in the second wire insertion guide element, the printed circuit board comprises two pass through holes (62, 64) from its top layer to its bottom layer; and each rigid end is welded onto the bottom layer of the printed circuit board (62, 64).