linea 25
if($respuesta["usuario"] == $_POST["ingUsuario"] && $respuesta["password"]== $encriptar){
Since PHP 7.4 it will generate a notice when trying to use values of type null, bool, int, float or resource as an array.
Array-style access of non-arrays
Trying to use values of type null, bool, int, float or resource as an array (such as $null["key"]) will now generate a notice.
To avoid notice you could check first if $respuesta
is an array:
if(is_array($respuesta) && $respuesta["usuario"] == $_POST["ingUsuario"] && $respuesta["password"]== $encriptar){