I have to use a sensor and one of the steps asked me to delete the parameter that references the UART serial port (ttyAMA0) in cmdline.txt, does it mean that I have to delete this part console=serial0,115200
from my cmdline.txt :
dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=/dev/mmcblk0p7 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait