I'm using NucleoF401RE. The issue is that GPIO Read pin is always SET. There is nothing connected to board. No pull-up resister connected. When i try to debug, HAL_GPIO_ReadPin always returns Pin_Status as SET.
Code isn't complex, hence i don't understand what could be the problem.char pin_status;pin_status=HAL_GPIO_ReadPin(SENSOR_H1_GPIO_Port,SENSOR_H1_Pin);