Port A units are digital/i2c and so will work as you have noticed.
PortB units are analogue devices.
You can try a PortBHub which will convert analogue to digital or you can try the GoPlus2 module which has analogue pins.
Alternatively, on the base plate of the Core2 remove the expansion module and you will have access to the MBus connectors with analogue pins.