Maybe this adds another small bit of help: You can choose if you like to use the pin number or the gpio "name" like gpio 18.
If you like to set the pin number, do
or use the gpio name with
Also a good help for debugging with gpio's is the wiring pi gpio utility (from here) to access the gpio's from the ...
I just changed the GPIO setup and it works for me (remote connection to rpi over ssh). This is my complete code. I added the pullup, changed the pin to 12 and because I was lazy used the setmode GPIO.BOARD because I just had the pin number. The shebang line does not influence, BUT I have to use python3 (3.7.3) to start the code since python (2.7.16) does ...
How can Rpi python read a SPI MFRC255 RFID/NFC tag?
Part 1 - Introduction to I2C and SPI NFC/RFID Chips and Modules
Part 2 - Setting up SPI MFRC522 Module
Part 3 - Troubleshooting SPI Software and Hardware using Loopback
Part 4 - Using Rpi4B buster Python 3 and Mfrc522 library to read NFC Tag
I have successfully installed ...
The module you have includes a resistive sensor and a comparator which produces a 1-bit value (0 or 1). There's nothing you can do to get a more detailed signal from that module.
There are two main approaches which allow to read analog values from resistive sensors with devices which don't have analog pins, such as raspberries.
simulate this ...
It is inadvisable to mix libraries.
You can control a servo with
See https://gpiozero.readthedocs.io/en/stable/api_output.html#servo for documentation of the servo class.
NOTE that gpiozero, by default uses RPi.GPIO
GPIO Zero builds on a number of underlying pin libraries, including RPi....