An optical device comprising: a printed circuit board comprising an image capture electronic circuit , a lens holder extending along the optical axis (O) 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 (O) 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 extending from the heating part to their bottom extremity , the bottom extremity of each electrically conductive element 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 of each electrically conductive wire 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 of the cylindrical wall to an open bottom extremity 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 from its top layer to its bottom layer; and each rigid end is welded onto the bottom layer of the printed circuit board . a printed circuit board comprising an image capture electronic circuit , a lens holder extending along the optical axis (O) 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 (O) 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 extending from the heating part to their bottom extremity , the bottom extremity of each electrically conductive element 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 of each electrically conductive wire 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 of the cylindrical wall to an open bottom extremity 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 from its top layer to its bottom layer; and each rigid end is welded onto the bottom layer of the printed circuit board . <EOS>