\documentclass{article}
\usepackage{blindtext}
\usepackage{graphicx}
\usepackage[utf8]{inputenc}
\usepackage{multirow}
\usepackage{siunitx}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{subfig}
\usepackage{hyperref}
\usepackage[section]{placeins}
\usepackage[margin=1.5in,footskip=0.3in]{geometry}
\usepackage{wrapfig}
\usepackage[table,xcdraw]{xcolor}
\usepackage{circuitikz}
\begin{document}
[...]
\begin{equation}\label{eq:cape}
\centering
t_{rise_{A}} = t_{rise_{B}} \times V_A / V_B
\end{equation}
[...]
Inoltre sono stati misurati dei tempi di salita $t_{rise}$ in linea con quanto previsto dalla relazione \ref{eq:cape}.
\end{document}
This is my code. The compiler doesn't read the reference and it gives as error an undefined control sequence: "\reserved@b ->\T@ref
l.186 ...con quanto previsto dalla relazione \ref{
eq:cape}. Infine è stato ...
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
".

[...]with\begin{document}and add\end{document}at the end, so that the example becomes compilable. I get several errors, first among them is:Package subcaption Error: This package can't be used in cooperation with the subfig package.In fact, when I remove\usepackage{subfig}, all errors disappear and the\refworks properly. – marquinho Mar 24 '22 at 09:42subfighasn't been maintained since 2005 (!).subfigis known to not be set up to work withhyperrefproperly. – marquinho Mar 24 '22 at 09:44\centeringdoing insideequation? – egreg Mar 24 '22 at 11:51subfigis compatible with several document classes that aren't compatible withcaption(notablyrevtex4-2andIEEEtran), so it still has use cases. – egreg Mar 24 '22 at 11:53