You need to get smartmontools to run smartctl command:
apt install smartmontools
or
compile from source
git clone https://github.com/smartmontools/smartmontools.git
cd smartmontools/smartmontools
./autogen.sh
./configure --with-nvme-devicescan
make
sudo make install
Before downloading and running the script you can check the script hash:

wget -qO- https://diskcheck.co/smart.sh | md5sum | awk '{print $1}'
3d2eb2f3516bc1b3eb2ba1357de9dc29

wget -qO- https://diskcheck.co/smart-test.sh | md5sum | awk '{print $1}'
6bc155992975d2a50046d0ad2cb6b7c4
Before downloading and running the script you can check if script verification was successful:

wget -qO- https://diskcheck.co/smart.sh | [[ "$(md5sum | awk '{print $1}')" = "3d2eb2f3516bc1b3eb2ba1357de9dc29" ]] && echo "Verification of script was successful." || echo "Verification of script failed."

wget -qO- https://diskcheck.co/smart-test.sh | [[ "$(md5sum | awk '{print $1}')" = "6bc155992975d2a50046d0ad2cb6b7c4" ]] && echo "Verification of script was successful." || echo "Verification of script failed."
Downloading and running the script:
wget -qO- https://diskcheck.co/smart.sh | sh
Before each run of script smart.sh you should also short test your disk(s):
wget -qO- https://diskcheck.co/smart-test.sh | sh
This script will verify if the hash of script smart.sh is correct and only then will run smart.sh (you need to manually download verify-and-run.sh and smart.sh, because each time we update smart.sh the hash will change):
wget -qO- https://diskcheck.co/verify-and-run.sh | sh
Run cron once a day:
crontab -e
0 0 * * * wget -qO- https://diskcheck.co/smart.sh | sh && wget -qO- https://diskcheck.co/smart-test.sh | sh
Latest 45 S.M.A.R.T data:
2022-10-01 18:00:13.2134831130 edb18ba21eb6f9431b15d3ddbdd7da3ad58b609cc467feeb3546f14d2b74b277/_dev_sdb/138
2022-10-01 18:00:12.4654861840 edb18ba21eb6f9431b15d3ddbdd7da3ad58b609cc467feeb3546f14d2b74b277/_dev_sda/139
2022-10-01 18:00:10.8214930480 afccecfeb3442a9378f920da3c2f50bdad6191b9c52226468f7fbe3c0f01c507/_dev_sdb/139
2022-10-01 18:00:07.6295064600 752d20149d7550c029aede4c0805320d401a1e8ccea426dbc78e57799de1f02f/_dev_sdb/102
2022-10-01 18:00:07.5935066130 afccecfeb3442a9378f920da3c2f50bdad6191b9c52226468f7fbe3c0f01c507/_dev_sda/140
2022-10-01 18:00:05.6935146950 c325b9c74aa7431d6a1fe4065c4bbfed0376ca33ef81620cc47b6eaf2b9cb3a9/_dev_sdb/138
2022-10-01 18:00:05.6215150060 752d20149d7550c029aede4c0805320d401a1e8ccea426dbc78e57799de1f02f/_dev_sda/102
2022-10-01 18:00:03.7255231070 c325b9c74aa7431d6a1fe4065c4bbfed0376ca33ef81620cc47b6eaf2b9cb3a9/_dev_sda/138
2022-10-01 18:00:03.3455247200 e07114f93c29db6b46c4683637beafdefa2a23d3048cbdb61f3e6d9d97b2547e/_dev_sda/268
2022-10-01 18:00:02.3895288330 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/4497
2022-10-01 17:00:03.1382408620 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/4496
2022-10-01 17:00:02.0862314920 e07114f93c29db6b46c4683637beafdefa2a23d3048cbdb61f3e6d9d97b2547e/_dev_sda/267
2022-10-01 16:00:08.3685525740 afccecfeb3442a9378f920da3c2f50bdad6191b9c52226468f7fbe3c0f01c507/_dev_sdb/138
2022-10-01 16:00:08.0045507950 752d20149d7550c029aede4c0805320d401a1e8ccea426dbc78e57799de1f02f/_dev_sdb/101
2022-10-01 16:00:06.3685428190 edb18ba21eb6f9431b15d3ddbdd7da3ad58b609cc467feeb3546f14d2b74b277/_dev_sdb/137
2022-10-01 16:00:05.6085391070 afccecfeb3442a9378f920da3c2f50bdad6191b9c52226468f7fbe3c0f01c507/_dev_sda/139
2022-10-01 16:00:05.4085381410 c325b9c74aa7431d6a1fe4065c4bbfed0376ca33ef81620cc47b6eaf2b9cb3a9/_dev_sdb/137
2022-10-01 16:00:05.2125371880 752d20149d7550c029aede4c0805320d401a1e8ccea426dbc78e57799de1f02f/_dev_sda/101
2022-10-01 16:00:03.5365290210 c325b9c74aa7431d6a1fe4065c4bbfed0376ca33ef81620cc47b6eaf2b9cb3a9/_dev_sda/137
2022-10-01 16:00:03.3685282010 edb18ba21eb6f9431b15d3ddbdd7da3ad58b609cc467feeb3546f14d2b74b277/_dev_sda/138
2022-10-01 16:00:02.6765248270 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/4495
2022-10-01 15:00:08.6253570070 e07114f93c29db6b46c4683637beafdefa2a23d3048cbdb61f3e6d9d97b2547e/_dev_sda/266
2022-10-01 15:00:03.0373186300 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/4494
2022-10-01 14:00:09.8855759010 afccecfeb3442a9378f920da3c2f50bdad6191b9c52226468f7fbe3c0f01c507/_dev_sdb/137
2022-10-01 14:00:07.0895418600 afccecfeb3442a9378f920da3c2f50bdad6191b9c52226468f7fbe3c0f01c507/_dev_sda/138
2022-10-01 14:00:06.9815405450 752d20149d7550c029aede4c0805320d401a1e8ccea426dbc78e57799de1f02f/_dev_sdb/100
2022-10-01 14:00:06.7055371780 c325b9c74aa7431d6a1fe4065c4bbfed0376ca33ef81620cc47b6eaf2b9cb3a9/_dev_sdb/136
2022-10-01 14:00:04.7615134550 752d20149d7550c029aede4c0805320d401a1e8ccea426dbc78e57799de1f02f/_dev_sda/100
2022-10-01 14:00:03.9695037770 c325b9c74aa7431d6a1fe4065c4bbfed0376ca33ef81620cc47b6eaf2b9cb3a9/_dev_sda/136
2022-10-01 14:00:02.7414887590 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/4493
2022-10-01 14:00:02.6574877310 edb18ba21eb6f9431b15d3ddbdd7da3ad58b609cc467feeb3546f14d2b74b277/_dev_sdb/136
2022-10-01 14:00:02.4094846960 e07114f93c29db6b46c4683637beafdefa2a23d3048cbdb61f3e6d9d97b2547e/_dev_sda/265
2022-10-01 14:00:01.9694793090 edb18ba21eb6f9431b15d3ddbdd7da3ad58b609cc467feeb3546f14d2b74b277/_dev_sda/137
2022-10-01 13:00:02.8576270200 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/4492
2022-10-01 12:00:08.4567070150 752d20149d7550c029aede4c0805320d401a1e8ccea426dbc78e57799de1f02f/_dev_sdb/99
2022-10-01 12:00:08.3127064350 afccecfeb3442a9378f920da3c2f50bdad6191b9c52226468f7fbe3c0f01c507/_dev_sdb/136
2022-10-01 12:00:06.4526988570 752d20149d7550c029aede4c0805320d401a1e8ccea426dbc78e57799de1f02f/_dev_sda/99
2022-10-01 12:00:05.7286959070 afccecfeb3442a9378f920da3c2f50bdad6191b9c52226468f7fbe3c0f01c507/_dev_sda/137
2022-10-01 12:00:05.3486943790 c325b9c74aa7431d6a1fe4065c4bbfed0376ca33ef81620cc47b6eaf2b9cb3a9/_dev_sdb/135
2022-10-01 12:00:04.5486911020 edb18ba21eb6f9431b15d3ddbdd7da3ad58b609cc467feeb3546f14d2b74b277/_dev_sdb/135
2022-10-01 12:00:03.4966868250 c325b9c74aa7431d6a1fe4065c4bbfed0376ca33ef81620cc47b6eaf2b9cb3a9/_dev_sda/135
2022-10-01 12:00:03.3486862210 e07114f93c29db6b46c4683637beafdefa2a23d3048cbdb61f3e6d9d97b2547e/_dev_sda/264
2022-10-01 12:00:03.2206857000 edb18ba21eb6f9431b15d3ddbdd7da3ad58b609cc467feeb3546f14d2b74b277/_dev_sda/136
2022-10-01 12:00:02.9086844300 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/4491
2022-10-01 11:00:02.6059880140 e07114f93c29db6b46c4683637beafdefa2a23d3048cbdb61f3e6d9d97b2547e/_dev_sda/263