Custom Component for printer ink levels

Hi, Can you help me and explain how to setup MQTT?
I have also Canon printer so if you can share your setup I will be grateful.